package com.hhd.flow.controller;

import com.hhd.flow.vo.Result;
import com.hhd.flow.service.FlowListenerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/listener")
public class ListenerController {

    @Autowired
    FlowListenerService flowListenerService;

    @RequestMapping("/loadListeners")
    public Result loadListeners(String listenerType, String formType) {
        return Result.ok(flowListenerService.loadListeners(listenerType, formType));
    }
}
